



	
    <script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/common/showdoc.js?v=1.1"></script>
    <script src="__PUBLIC__/layer/layer.js"></script>
    <script src="__PUBLIC__/js/dialog.js"></script>
    <script src="__PUBLIC__/layui/layui.js"></script>
    <div style="display:none">
    	{:C("STATS_CODE")}
    </div>
    <script>
        //注意：导航 依赖 element 模块，否则无法进行功能性操作
        layui.use('element', function () {
            var element = layui.element;
        });
        $(function () {
            var reg = new RegExp("(^|&)s=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            var active=true;
            if (r != null) {
                var path = window.location.pathname + '?' + decodeURI(r[0]);
                $("ul#main-navbar li").each(function () {
                    $(this).removeClass("layui-this");
                    if(path == $(this).find("a").attr("href") ){
                        active=false;
                        $(this).addClass("layui-this");
                    }
                });
            }
            if(active){
                //$("ul#main-navbar li:first").addClass("layui-this");
            }

        });
    </script>
  </body>
</html> 
